Optimal. Leaf size=102 \[ \frac{(a+b \sec (c+d x))^{n+1} \text{Hypergeometric2F1}\left (1,n+1,n+2,\frac{b \sec (c+d x)}{a}+1\right )}{a d (n+1)}-\frac{a (a+b \sec (c+d x))^{n+1}}{b^2 d (n+1)}+\frac{(a+b \sec (c+d x))^{n+2}}{b^2 d (n+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0923938, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3885, 952, 80, 65} \[ -\frac{a (a+b \sec (c+d x))^{n+1}}{b^2 d (n+1)}+\frac{(a+b \sec (c+d x))^{n+2}}{b^2 d (n+2)}+\frac{(a+b \sec (c+d x))^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{b \sec (c+d x)}{a}+1\right )}{a d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3885
Rule 952
Rule 80
Rule 65
Rubi steps
\begin{align*} \int (a+b \sec (c+d x))^n \tan ^3(c+d x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{(a+x)^n \left (b^2-x^2\right )}{x} \, dx,x,b \sec (c+d x)\right )}{b^2 d}\\ &=\frac{(a+b \sec (c+d x))^{2+n}}{b^2 d (2+n)}-\frac{\operatorname{Subst}\left (\int \frac{(a+x)^n \left (b^2 (2+n)+a (2+n) x\right )}{x} \, dx,x,b \sec (c+d x)\right )}{b^2 d (2+n)}\\ &=-\frac{a (a+b \sec (c+d x))^{1+n}}{b^2 d (1+n)}+\frac{(a+b \sec (c+d x))^{2+n}}{b^2 d (2+n)}-\frac{\operatorname{Subst}\left (\int \frac{(a+x)^n}{x} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=-\frac{a (a+b \sec (c+d x))^{1+n}}{b^2 d (1+n)}+\frac{\, _2F_1\left (1,1+n;2+n;1+\frac{b \sec (c+d x)}{a}\right ) (a+b \sec (c+d x))^{1+n}}{a d (1+n)}+\frac{(a+b \sec (c+d x))^{2+n}}{b^2 d (2+n)}\\ \end{align*}
Mathematica [A] time = 1.23514, size = 118, normalized size = 1.16 \[ \frac{\sec ^2(c+d x) (a+b \sec (c+d x))^n \left (n (a \cos (c+d x)+b) (-a \cos (c+d x)+b n+b)-b^2 \left (n^2+3 n+2\right ) \cos ^2(c+d x) \text{Hypergeometric2F1}\left (1,-n,1-n,\frac{a \cos (c+d x)}{a \cos (c+d x)+b}\right )\right )}{b^2 d n (n+1) (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.297, size = 0, normalized size = 0. \begin{align*} \int \left ( a+b\sec \left ( dx+c \right ) \right ) ^{n} \left ( \tan \left ( dx+c \right ) \right ) ^{3}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sec{\left (c + d x \right )}\right )^{n} \tan ^{3}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]